﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace thinger.VisionDemo.Utils
{
    public class FormUtil
    {
        /// <summary>
        /// 限制输出长度
        /// </summary>
        /// <param name="listView"></param>
        /// <param name="maxLength"></param>
        public static void HandleListLength(ListView listView,int maxLength)
        {
            if (listView.Items.Count > maxLength)
            {
                listView.Items.RemoveAt(0);
            }
        }
     
    }
}
